FMeinicke's Wiki

Home

❯

Windows

❯

Powershell

❯

Unix `find` equivalent

Unix `find` equivalent

May 27, 20251 min read

  • pwsh/get-childitem
  • pwsh/foreach-object

get-childitem foreach-object

Source

  • https://superuser.com/a/914980/1201131
Get-ChildItem -Filter "<pattern>" -Recurse $pwd

to do something with the found files/folders, e.g. deleting

Get-ChildItem -Filter "<pattern>" -Recurse $pwd | ForEach-Object { rm -r $_ }

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub